package com.flyco.modules.stm.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 门店店员关联
 * @Author: flyco
 * @Date:   2020-09-23
 * @Version: V1.0
 */
@Data
@TableName("stm_store_sales_relation")
@ApiModel(value="stm_store_info对象", description="门店")
public class StmStoreSalesRelation implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**门店id*/
    @ApiModelProperty(value = "门店id")
	private Long storeId;
	/**导购id*/
    @Excel(name = "导购id", width = 15)
    @ApiModelProperty(value = "导购id")
	private Long salesId;
	/**9:经理;5:店长;1:导购*/
    @Excel(name = "9:经理;5:店长;1:导购", width = 15)
    @ApiModelProperty(value = "9:经理;5:店长;1:导购")
	@Dict(dicCode = "sales_position")
	private Integer position;
	/**1:失效;0有效*/
    @Excel(name = "1:失效;0有效", width = 15)
    @ApiModelProperty(value = "1:失效;0有效")
	private Integer delFlag;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;

	@TableField(exist = false)
	private String salesName;
}
